﻿<baseview:BaseView x:Class="CharacterCreation.Views.CharacterStatisticsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:baseview="clr-namespace:CharacterCreation.Views.Contracts"       
    xmlns:controls="clr-namespace:CharacterCreation.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" x:Name="view"
    d:DesignHeight="400" d:DesignWidth="600">

    <Grid>
        <StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5">
            <controls:StatisticControl DataContext="{Binding Strength}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}" />
            <controls:StatisticControl DataContext="{Binding Dexterity}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}"/>
            <controls:StatisticControl DataContext="{Binding Fighting}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}"/>
            <controls:StatisticControl DataContext="{Binding Constitution}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}"/>
            <controls:StatisticControl DataContext="{Binding Perception}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}"/>
            <controls:StatisticControl DataContext="{Binding Intelligence}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}"/>
            <controls:StatisticControl DataContext="{Binding WillPower}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}"/>
            <controls:StatisticControl DataContext="{Binding Charisma}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}" />
            <controls:StatisticControl DataContext="{Binding HitPoints}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}" />
            <controls:StatisticControl DataContext="{Binding Essence}" Foreground="{Binding ElementName=view, Path=Foreground}" DisplayMode="{Binding ElementName=view, Path=DisplayMode}" />
        </StackPanel>
    </Grid>
</baseview:BaseView>
